package com.kedou.sdk.params;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Administrator on 2017/6/9 0009.
 */

public class CreateOrderResponseParams extends ResponseParams<CreateOrderResponseParams.CreateOrderResponseData> {

    public static class CreateOrderResponseData implements Parcelable {


        private String order_no;
        private String pay_info;

        private int open_with;
        private int payment_success;

        public CreateOrderResponseData() {
        }

        protected CreateOrderResponseData(Parcel in) {
            open_with = in.readInt();
            order_no = in.readString();
            pay_info = in.readString();
            payment_success = in.readInt();

        }

        public static final Creator<CreateOrderResponseData> CREATOR = new Creator<CreateOrderResponseData>() {
            @Override
            public CreateOrderResponseData createFromParcel(Parcel in) {
                return new CreateOrderResponseData(in);
            }

            @Override
            public CreateOrderResponseData[] newArray(int size) {
                return new CreateOrderResponseData[size];
            }
        };



        public int getOpen_with() {
            return open_with;
        }

        public void setOpen_with(int open_with) {
            this.open_with = open_with;
        }

        public String getOrder_no() {
            return order_no;
        }

        public void setOrder_no(String order_no) {
            this.order_no = order_no;
        }

        public String getPay_info() {
            return pay_info;
        }

        public void setPay_info(String pay_info) {
            this.pay_info = pay_info;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        public int getPayment_success() {
            return payment_success;
        }

        public void setPayment_success(int payment_success) {
            this.payment_success = payment_success;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeInt(open_with);
            dest.writeString(order_no);
            dest.writeString(pay_info);
            dest.writeInt(payment_success);

        }
    }

}
